package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.player.CrossUserBaseInfo;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class CrossUserBaseInfoBusiness {
    public static Map<Long, CrossUserBaseInfo> getAllUserBaseInfo(){
        return DaoHelper.getCrossUserBaseInfoDaoImpl().getAllUserBaseInfo();
    }

    public static Map<Long, CrossUserBaseInfo> getUserBaseInfoUpdateInTime(long startTime) {
        return DaoHelper.getCrossUserBaseInfoDaoImpl().getUserBaseInfoUpdateInTime(startTime);
    }

    public static CrossUserBaseInfo getUserBaseInfoByUserId(long userId) {
        return DaoHelper.getCrossUserBaseInfoDaoImpl().getUserBaseInfoByUserId(userId);
    }

    public static boolean add(CrossUserBaseInfo data) {
        return DaoHelper.getCrossUserBaseInfoDaoImpl().add(data);
    }

    public static boolean update(CrossUserBaseInfo data) {
        return DaoHelper.getCrossUserBaseInfoDaoImpl().update(data);
    }
}
